{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">我的预约</span>
	<ul class="user-cont fr">
		<li id="navMore"><a href="{MEMBER_PATH}" title="个人中心"><img src="{IMG_PATH2}icon/navMore1.png" alt="个人中心"></a></li>
	</ul>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
{if $Star==""}
<div class="courseDetail3_t">没有预约记录</div>
{else}
	<div class="courseDetail3_t">全部</div>
{/if}	
	<ul class="oList_daoshi">

{loop $Star $r}
		<li>
			<a href="{$r[url]}" class="clearfix">				
				<img src="{$r[thumb]}" class="oListdsImg fl">				
				<div class="oListdsCon">
					<div class="oListdsCon1 clearfix"><em class="fl">{$r[title]}</em>{$r[job]}
					</div>
					<div class="oListdsTxt ellipsis">{$r[con]}</div>
					<div class="yuejianzt clearfix">
					<?php
					$db_member = pc_base::load_model('apply_expert_model');
						$num=$db_member->count('a_id='.$r['id']);
						$passnum=$db_member->count('a_id='.$r['id'].' and status=1');
					?>
						<span class="icon_heart">{$num}人想约</span>
						<span class="icon_yyj">{$passnum}人成功预约</span>
					</div>
					<div class="ds_biaoqian clearfix">
					<?php if (strpos($r['type'], '1') !== false) {?>
				    <i class="icon_t"></i>
				    <?php }?>
				    <?php if (strpos($r['type'], '2') !== false) {?>
				    <i class="icon_j"></i>
				    <?php }?>
				    <?php if (strpos($r['type'], '3') !== false) {?>
				    <i class="icon_r"></i>
				    <?php }?>
						<em class="fr">
						<?php $arr=explode('、', $r[goodjob])?>
						{$arr[0]}
						</em>
					</div>
				</div>
			</a>
		</li>


<!-- 
		<li>
			<a href="{$r[url]}" class="clearfix">				
				<img src="{$r[thumb]}" class="oListdsImg fl">				
				<div class="oListdsCon">
					<div class="oListdsCon1 clearfix">{$r[title]}
						<em class="fr">
						<?php $arr=explode('、', $r[goodjob])?>
						{$arr[0]}
						</em>
					</div>
					<div class="oListdsTxt ellipsis">{$r[con]}</div>
					<div class="yuejianzt clearfix">
					<?php
						$num=$db_member->count('a_id='.$r['id']);
						$passnum=$db_member->count('a_id='.$r['id'].' and status=1');
					?>
						<span class="icon_heart">{$num}人想约</span>
						<span class="icon_yyj">{$passnum}人成功预约</span>
					</div>
					<div class="ds_biaoqian clearfix">
					<?php if (strpos($r['type'], '1') !== false) {?>
				    <i class="icon_t"></i>
				    <?php }?>
				    <?php if (strpos($r['type'], '2') !== false) {?>
				    <i class="icon_j"></i>
				    <?php }?>
				    <?php if (strpos($r['type'], '3') !== false) {?>
				    <i class="icon_r"></i>
				    <?php }?>
						
					</div>
				</div>
			</a>
		</li> -->
{/loop}

	</ul>




</main>
<!-- / main -->
<div class="h_40"></div>
<div id="clearhistory"><a href="index.php?m=member&c=other&a=clearall">清 空</a></div>

{template "member","footer"}